<template>
  <div>
    <basic-table
      :table-title="tableTitle"
      :data-source="dataSource"
      :data-params="dataParams"
      :multiple-table="false"
      class="mt-4"
    />
  </div>
</template>
<script>
import BasicTable from '@/components/BasicTable/index.vue'

import { getSceneSpecialInfo } from '@/api/project'

export default {
  name: 'BasicInfos',
  components: { BasicTable },
  props: {
    projectId: { type: String, default: '' }
  },
  data() {
    return {
      dataSource: () => getSceneSpecialInfo,
      dataParams: {},
      tableTitle: [
        {
          label: '姓名',
          value: 'PerName',
          show: true,
          type: 'text'
        },
        {
          label: '所属企业名称',
          value: 'ComName',
          show: true,
          type: 'text'
        },
        {
          label: '证件号码',
          value: 'PerCard',
          show: true,
          type: 'text'
        },
        {
          label: '施工许可证编号',
          value: 'BuildPermitNum',
          show: true,
          type: 'text'
        },
        {
          label: '工种',
          value: 'WorkType',
          show: true,
          type: 'text'
        },
        {
          label: '证书编号',
          value: 'CertNum',
          show: true,
          type: 'text'
        },
        {
          label: '证书有效期',
          value: 'CertEndDate',
          show: true,
          type: 'text'
        },
        {
          label: '发证单位',
          value: 'OrganName',
          show: true,
          type: 'text'
        }
      ]
    }
  },
  created() {
    this.dataParams.projectId = this.projectId
  }
}
</script>

<style scoped>

</style>
